class SalesCount {
  double _netreceipt;
  int _newly;
  List<SalesCountItem> _salesList;

  double get netreceipt => _netreceipt;
  int get newly => _newly;
  List<SalesCountItem> get salesList => _salesList;

  SalesCount.fromJsonMap(dynamic json) {
    _netreceipt = json["netreceipt"];
    _newly = json["newly"];
    if (json["salesList"] != null) {
      _salesList = [];
      json["salesList"].forEach((v) {
        _salesList.add(SalesCountItem.fromJson(v));
      });
    }
  }
}

class SalesCountItem {
  String saleId;
  String saleName;
  int tradeCount;
  double tradeAmount;
  String tradeAmountRatio;
  int newMerchantNum;
  int tradeMerchantNum;
  int sumMerchantNum;
  SalesCountItem.fromJson(dynamic json)
      : saleId = json["saleId"],
        saleName = json["saleName"],
        tradeCount = json["tradeCount"],
        tradeAmount = json["tradeAmount"],
        tradeAmountRatio = json["tradeAmountRatio"],
        newMerchantNum = json["newMerchantNum"],
        tradeMerchantNum = json["tradeMerchantNum"],
        sumMerchantNum = json["sumMerchantNum"];
}
